package com.medical.Mapper;


import com.medical.DTO.EmployeeDTO;
import com.medical.DTO.EmployeePageDTO;
import com.medical.DTO.LoginDTO;
import com.medical.VO.EmployeeVO;
import com.medical.VO.LoginVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    @Select("select * from user where username = #{username} and password = #{password}")
    LoginVO getByUsernameAndPassword(LoginDTO loginDTO);

/**
 * 添加员工
 * @param employee
 */
    void insert(EmployeeDTO employee);

    /**
     * 删除员工
     * @param ids
     */
    void delete(List<Integer> ids);

        /**
     * 修改员工
     * @param employee
     */
    void update(EmployeeDTO employee);

    /*
     * 获取员工列表
     */

    List<EmployeeVO> getEmployeeList(EmployeePageDTO employeePage);

}
